#pragma once
#include <vector>
#include <list>

class BinTriNode;
class BinTriNodePool
{
public:
	BinTriNodePool(int size);
	~BinTriNodePool(void);

	BinTriNode * GetNewNode();
	void Recycle(BinTriNode * node);

//	static BinTriNodePool& GetInstance();


	std::vector<BinTriNode> mPool;
	std::list<BinTriNode *> mAvilable;
	size_t index;
	bool initlize;


	

};
